﻿namespace GCC.APIContainer.WSManager
{
    public class LoginUser
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public long user_id { get; set; }

        //账户登录名
        public string user_name { get; set; }

        //token
        public string token { get; set; }

        /// <summary>
        /// 角色
        /// </summary>
        public List<SysRole> roles { get; set; }

        /// <summary>
        /// 角色集合
        /// </summary>
        public List<string> roleIds { get; set; }

        /// <summary>
        /// 验证码key
        /// </summary>
        public bool isAdmin { get; set; }

        /// <summary>
        /// 权限
        /// </summary>
        public List<string> permissions { get; set; }


        public LoginUser()
        {
        }

    }
    public class SysRole 
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        public string role_name { get; set; }

        /// <summary>
        /// 角色权限
        /// </summary>
        public string role_key { get; set; }

        /// <summary>
        /// 角色排序
        /// </summary>
        public int role_sort { get; set; }

        /// <summary>
        /// 帐号状态（0正常 1停用）
        /// </summary>
        public int status { get; set; }

        /// <summary>
        /// 删除标志（0代表存在 2代表删除）
        /// </summary>
        public int is_delete { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }

    }
}
